package com.lou1052.core.base;

/**
 * Created with IntelliJ IDEA.
 * User: liuqing
 * Date: 2015/10/23
 * Time: 14:13
 * To change this template use File | Settings | File Templates.
 */
public interface Pool<O> {

    /**
     * 从池中取得对象
     * @return
     */
    O borrow();

    /**
     * 放回到池中
     * @param object
     */
    void release(O object);
}
